﻿<?php
/**
 * Template Name: Contact Template
 */ 
if($_SERVER['HTTP_X_REQUESTED_WITH']==''):
 get_header(); 
endif;
//get theme option
$boot_option = array(
	'boot-address' 		=> '',
	'boot-longitude'	=> '',
	'boot-latitude'		=> '', 
	'boot-email'		=> '', 
	'boot-contact-number'	=> '', 
	'facebook-link'		=> '', 
	'linkedin-link'		=> '', 
	'boot-copyright'	=> '',		
);
foreach($boot_option as $key => $value){
	$boot_option[ $key ] = get_option( $key );		
}
//get admin email
$admin_email = get_option('admin_email');
if($_SERVER['HTTP_X_REQUESTED_WITH']==''):
?>
<div id="accordion">
    <?php include_once (TEMPLATEPATH . '/inc/menu-home.php' ); ?>
	<?php include_once (TEMPLATEPATH . '/inc/menu-news.php' ); ?>
	<?php include_once (TEMPLATEPATH . '/inc/menu-works.php' ); ?>
 
	<div class="panel active hasdata">
		<div class="pink contact-menu" rel="pushstate"></div>
		<div class="panelContent p4">
<?php endif; ?>
        <?php include_once (TEMPLATEPATH . '/inc/language-nav.php' ); ?>
		<?php if($_SERVER['HTTP_X_REQUESTED_WITH']==''): ?>
			<div class="container-860"><?php endif; ?>			
			<section class="contact">
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>	
				<h1><?php the_title();?></h1>
				<div class="sticky-nav"> <a href="#">BLOOT ARCHITECTURE</a></div>
				<div id="google-map"></div>
				<div class="content">
					<center>
						<p><?php echo $boot_option['boot-address']; ?></p>
						<p><?php echo $boot_option['boot-email']; ?></p>
						<p><?php echo $boot_option['boot-contact-number']; ?></p>
					</center>
					<div class="social">
						<a href="mailto:<?php echo $admin_email; ?>" class="social-mail" mailto="">Mail</a>
						<a href="<?php echo $boot_option['facebook-link']; ?>" class="social-fb">Facebook</a>
						<a href="<?php echo $boot_option['linkedin-link']; ?>" class="social-in">Link In</a>
					</div>
					<h3 class="site">site: <?php echo $boot_option['boot-copyright']; ?></h3>
					<?php the_content(); ?>
				</div>
				<script type="text/javascript">    
					$(function(){      
						$("#google-map").gmap3({
							marker:{
								//address: "Haltern am See, Weseler Str. 151"
								latLng:[52.367714, 4.897924],
								options:{
									icon: "<?php bloginfo('template_directory'); ?>/img/marker.png"
								}
							},
							map:{
								options:{
									zoom: 14,					
									mapTypeId: google.maps.MapTypeId.TERRAIN,
									mapTypeControl: false,
									navigationControl: false,					
									streetViewControl: false
								},			
							}
						});         
					});
				</script>
			<?php endwhile; endif; ?>
			<?php include_once (TEMPLATEPATH . '/inc/language-nav.php' ); ?>
			</section>	
		<?php if($_SERVER['HTTP_X_REQUESTED_WITH']==''): ?>
		</div>
		</div>
    </div>
	
    <?php include_once (TEMPLATEPATH . '/inc/menu-about.php' ); ?>
</div>
<?php get_footer(); 
	else:
		set_title_header();
	endif;
?>